package com.ssis.core;

import com.ssis.graphics.Sprite;

public class CrewCursor {
	private int nameIndex;
	private Sprite sprite;
	
	public CrewCursor() {
		nameIndex = 0;
		sprite = new Sprite("crew_cursor", HUDCrew.LIST_X_OFFSET, HUDCrew.LIST_Y_OFFSET);
	}
	
	public void render() {
		sprite.moveto(HUDCrew.LIST_X_OFFSET, HUDCrew.LIST_Y_OFFSET + nameIndex * HUDCrew.LINE_WIDTH);
		sprite.render();
	}
	
	public void select(int selected) {
		nameIndex = selected;
	}
	
	public int selected() {
		return nameIndex;
	}
}
